package com.woniu.common.enums;

/**
 * @author 杨光
 * @date 2021年08月12日 14:33
 */
public enum ExceptionCode {
    INVALID_KAPTCHA(100100,"验证码错误"),
    INVALID_USERNAME_PASSWORD(100101,"无效的用户名或密码"),
    JSON_CONVERTION_EXCEPTION(100102,"JSON转换异常"),
    PLAY_TIME_CONFICTION(100103,"电影播放时间冲突"),
    USER_ACCOUNT_IN_USE(100104,"用户账号已经被注册"),
    SEAT_ALREADY_SOLD(100105,"您选的座位已经售出，请重新选择"),
    CELL_PHONE_VERIFY_CODE_LIMIT(100106,"24小时内只能申请最多3次验证码"),
    CELL_IPHONE_VERIFY_CODE_LIMIT(1001107, "不好意思,24小时内只能访问3次"),
    ERROR_ORDERID(1001108,"不好意思,订单id过期了"),
    UNAUTH(401, "不好意思,未登录"),
    MAKE_ORDER_ERROR(1001109,"不好意思出bug了" ),
    NULL_ORDER(1001110,"不好意思,该订单不存在");
    ExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
